<!--
 * @Description: 梦幻西游
 * @Author: zzj
 * @Date: 2021-08-19 11:00:14
 * @LastEditors: zzj
 * @LastEditTime: 2021-08-19 11:35:55
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>梦幻西游</title>
    <style>
        body{
            margin: 0;
            padding: 0;
        }

         /* 背景图片相关样式 */
        .main{
            width: 100%;
            height: 786px;
            overflow: hidden;
        }

        .main .bg{
            width: 3920px;
            height: 100%;
            margin-left: -1920px;
            background-image: url("./images/bg.jpg");
            background-repeat: repeat-x;

            animation-name: bg;
            animation-duration: 30s;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
        }

        @keyframes bg{
            from{
                margin-left: -1920px;
            }
            to{
                margin-left: 0;
            }
        }

        /* 四个人物相关样式 */
        .content{
            /* 200px * 4 = 800px   50px * 3 =150px */
            width: 950px;
            position: absolute;
            left: 50%;
            margin-left: -475px;
            bottom: 80px;
        }  
        .content > ul >li{
            float: left;
            width: 200px;
            margin-right: 30px;
            overflow: hidden;
        }

        .ss{
            margin-left: -10px;
        }
        
        .content > ul >li >img{
            width: 1600px;
            animation-name: people;
            animation-duration: 1s;
            animation-timing-function: steps(8);
            animation-iteration-count: infinite;
        }

        @keyframes people{
            from{
                margin-left: 0;
            }
            to{
                margin-left: -1600px;
            }
        }
    </style>
</head>
<body>
    <div class="main">
        <div class="bg">
        </div>
    </div>
    <div class="content">
        <ul>
            <li class="wk"><img src="./images/wk.png" alt="悟空打妖怪去了"></li>
            <li class="bj"><img src="./images/bj.png" alt="八戒睡懒觉去了"></li>
            <li class="ts"><img src="./images/ts.png" alt="唐僧被妖怪抓走了"></li>
            <li class="ss"><img src="./images/ss.png" alt="沙僧跑路了"></li>
        </ul>
    </div>
</body>
</html>